public class ThreadDemo2 {


    public static void main(String[] args) {
        Thread t = new Thread() {
            @Override
            public void run() {
               //方法体
            }
        };

        t.start();
    }

}
